turn the tables upon someone

扭转形势;转败为胜;变劣势为优势;(与某人)主客易地;(在打牌时与某人)交换座次